/*
		* Author:	 Sander
		* Date:		 12-apr-2011
		* Name:		 IntersectionInfo
		* Version:	1.0
		*
		* This code is property of Sander blahblahblah copyright blahblah.
*/


package javaraytracer;

import javaraytracer.Objects.Traceable;

//PENDING:add function/property description
public class IntersectionInfo
{
	
	public boolean hit;
	public Vec3 location;
	public Vec3 normal;
	public double distance;
	public Traceable object;
	public double u = 0;
	public double v = 0;

	public IntersectionInfo( boolean hit )
	{
		this.hit = hit;
	}

	public IntersectionInfo( Vec3 loc, Vec3 norm, double dis, Traceable o )
	{
		hit = true;
		location = loc;
		normal = norm;
		distance = dis;
		object = o;
		//print(o.getMyFuckingMat());
	}
}
